<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>网站后台管理模版</title>
    <link rel="stylesheet" type="text/css" href="/public/static/admin/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="/public/static/admin/css/admin.css" />
    <script src="/public/static/admin/js/jquery.js"></script>
</head>

<body>
    <div class="main-layout" id='main-layout'>
        <!--侧边栏-->
        <div class="main-layout-side">
            <div class="m-logo">
            </div>
            <ul class="layui-nav layui-nav-tree" lay-filter="leftNav">
                {if $IsWebAdmin}
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="iconfont">&#xe608;</i>站长工具</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="javascript:;" data-url="/{$useradmin}/App/AppSetting/Home"
                                data-id='ApplicationVersionManagement' data-text="app版本管理">
                                <span class="l-line"></span>
                                app版本管理
                            </a>

                        </dd>
                        <dd>
                            <a href="javascript:;" data-url="/{$useradmin}/Setting/SiteSetting/Home"
                                data-id='ApiConfiguration' data-text="站点设置">
                                <span class="l-line"></span>
                                站点设置
                            </a>
                        </dd>
                    </dl>
                </li>
                {/if}
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="iconfont">&#xe607;</i>菜单管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-url="menu1.html" data-id='1' data-text="后台菜单"><span
                                    class="l-line"></span>后台菜单</a></dd>
                        <dd><a href="javascript:;" data-url="menu2.html" data-id='2' data-text="前台菜单"><span
                                    class="l-line"></span>前台菜单</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;"><i class="iconfont">&#xe608;</i>内容管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-url="/{$useradmin}/ComicsList.html" data-id='3'
                                data-text="文章管理"><span class="l-line"></span>文章管理</a></dd>
                        <dd><a href="javascript:;" data-url="/{$useradmin}/Create/Comics.html" data-id='4'
                                data-text="创建漫画"><span class="l-line"></span>创建漫画</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="iconfont">&#xe608;</i>分类&标签</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-url="/{$useradmin}/Classified/ClassifiedCatalogue.html"
                                data-id='5' data-text="分类管理"><span class="l-line"></span>分类管理</a></dd>
                        <dd><a href="javascript:;" data-url="/{$useradmin}/Classified/TagCatalogue.html" data-id='6'
                                data-text="标签管理"><span class="l-line"></span>标签管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="iconfont">&#xe604;</i>推荐位管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="iconfont">&#xe60c;</i>友情链接</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="iconfont">&#xe60a;</i>RBAC</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" data-url="email.html" data-id='7' data-text="邮件系统"><i
                            class="iconfont">&#xe603;</i>邮件系统</a>
                </li>
                <li class="layui-nav-item">

                    <a href="javascript:;" data-url="/{$useradmin}/DataOptimization/index.html" data-id='8'
                        data-text="数据优化"><i class="iconfont">&#xe60d;</i>数据优化</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="iconfont">&#xe600;</i>备份管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" data-url="admin-info.html" data-id='5' data-text="个人信息"><i
                            class="iconfont">&#xe606;</i>个人信息</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" data-url="system.html" data-id='6' data-text="系统设置"><i
                            class="iconfont">&#xe60b;</i>系统设置</a>
                </li>
            </ul>
        </div>
        <!--右侧内容-->
        <div class="main-layout-container">
            <!--头部-->
            <div class="main-layout-header">
                <div class="menu-btn" id="hideBtn">
                    <a href="javascript:;">
                        <span class="iconfont">&#xe60e;</span>
                    </a>
                </div>
                <ul class="layui-nav" lay-filter="rightNav">
                    <li class="layui-nav-item"><a href="javascript:;" data-url="email.html" data-id='4'
                            data-text="邮件系统"><i class="iconfont">&#xe603;</i></a></li>
                    <li class="layui-nav-item">
                        <a href="javascript:;" data-url="admin-info.html" data-id='5' data-text="个人信息">超级管理员</a>
                    </li>
                    <li class="layui-nav-item"><a href="javascript:;">退出</a></li>
                </ul>
            </div>
            <!--主体内容-->
            <div class="main-layout-body">
                <!--tab 切换-->
                <div class="layui-tab layui-tab-brief main-layout-tab" lay-filter="tab" lay-allowClose="true">
                    <ul class="layui-tab-title">
                        <li class="layui-this welcome">后台主页</li>
                    </ul>
                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show" style="background: #f5f5f5;">
                            <!--1-->
                            <!-- <iframe src="welcome.html" width="100%" height="100%" name="iframe" scrolling="auto" class="iframe" framborder="0"></iframe> -->
                            <!--1end-->

                            <!--1-->
                            <!-- <iframe src="./EditProject" width="100%" height="100%" name="iframe" scrolling="auto" class="iframe" framborder="0"></iframe> -->
                            <!-- 编辑漫画 -->
                            <!--1end-->
                            <!--1-->
                            <!-- <iframe src="./ComicsList.html" width="100%" height="100%" name="iframe" scrolling="auto"
								class="iframe" framborder="0"></iframe> -->
                            <!-- 漫画列表 -->
                            <!--1end-->
                            <!-- <iframe src="./EditComicsInfo.html" width="100%" height="100%" name="iframe" scrolling="auto"
								class="iframe" framborder="0"></iframe> -->
                            <!-- 编辑漫画详细信息 -->
                            <!--1end-->
                            <!--1end-->
                            <!-- <iframe src="/{$useradmin}/Create/Comics.html" width="100%" height="100%" name="iframe" scrolling="auto"
								class="iframe" framborder="0"></iframe> -->
                            <!-- 创建漫画 -->
                            <!--1end-->
                            <!-- 		<iframe src="/{$useradmin}/Classified/ClassifiedCatalogue.html" width="100%" height="100%" name="iframe" scrolling="auto"
								class="iframe" framborder="0"></iframe> -->
                            <iframe src="/useradmin/DataOptimization/index.html" width="100%" height="100%"
                                name="iframe" scrolling="auto" class="iframe" framborder="0"></iframe>
                            <!-- 分类管理 -->
                            <!--1end-->
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--遮罩-->
        <div class="main-mask">

        </div>
    </div>
    <script type="text/javascript">
        var scope = {
            link: './welcome.html'
        }

        function InsertNewTab(
            title,
            url,
            idName,
            id, {
                extendsParameter = {
                    'HiddenFrom': false,
                    'FromType': null,
                    'FromParameter': {}
                }
            }) {
            var isActive = $('.main-layout-tab .layui-tab-title').find("li[lay-id=" + idName + id + "]"); //判断当前选项有没有创建
            if (isActive.length > 0) {
                //切换到选项卡
                element.tabChange('tab', idName + id);
            } else {
                if (extendsParameter["HiddenFrom"]) { //判断是不是需要from表单 from表单和iFrame组成post提交参数
                    element.tabAdd('tab', { //先创建窗口
                        title: title,
                        content: '<iframe  name="' + idName + id +
                            '" class="iframe" framborder="0" data-id="' + id +
                            '" scrolling="auto" width="100%"  height="100%"></iframe>',
                        id: idName + id
                    });

                    var fromInput = '';
                    $.each(extendsParameter["FromParameter"], function (indexInArray, valueOfElement) {
                        fromInput += '<input type="hidden" name="' + indexInArray + '" value="' + valueOfElement +
                            '" />';
                    });
                    switch (extendsParameter["FromType"]) {
                        case "EditComicsInfo":
                            $("#hideBtn").append( //创建表单
                                '<form id="form1" action="' + url + '" target="' + idName + id +
                                '" method="post">' +
                                fromInput +
                                '</form>'
                            );
                            $("#form1").submit(); //载入页面
                            $("#form1").remove(); //销毁
                            break;
                        default:
                            alert('发生意外错误错误原因 javascript');
                            break;
                    }
                } else { //要是没有post参数载入页面
                    element.tabAdd('tab', { //先创建窗口
                        title: title,
                        content: '<iframe src="' + url + '"  name="' + idName + id +
                            '" class="iframe" framborder="0" data-id="' + id +
                            '" scrolling="auto" width="100%"  height="100%"></iframe>',
                        id: idName + id
                    });
                }


                element.tabChange('tab', idName + id);

            }
        }
    </script>
    <script src="/public/static/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
    <script src="/public/static/admin/js/common.js" type="text/javascript" charset="utf-8"></script>
    <script src="/public/static/admin/js/main.js" type="text/javascript" charset="utf-8"></script>

</body>

</html>